home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Utilities / SmartFilesystem / Include / btreenodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-14  |  417 b   |  25 lines

  1. #include "fs.h"
  2. #include "blockstructure.h"
  3.  
  4. /* Structures used by BNode trees */
  5.  
  6. struct BNode {
  7.   ULONG key;
  8.   ULONG data;
  9. };
  10.  
  11. struct BTreeContainer {
  12.   UWORD nodecount;
  13.   UBYTE isleaf;
  14.   UBYTE nodesize;   /* Must be a multiple of 2 */
  15.  
  16.   struct BNode bnode[0];
  17. };
  18.  
  19. #define BNODECONTAINER_ID        MAKE_ID('B','N','D','C')
  20.  
  21. struct fsBNodeContainer {
  22.   struct fsBlockHeader bheader;
  23.   struct BTreeContainer btc;
  24. };
  25.